﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MainPlanoExercicio.aspx.cs" Inherits="AcademiaInteligenteWeb.MainPlanoExercicio" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Plano Exercicio
    </h1>
    <div id="acoes">
        <ul>
            <li>
                <a href="NewPlanoExercicio.aspx?id_cliente=<%=Request["id_cliente"]%>&id_academia=<%=Session[AcademiaInteligenteWeb.Util.SESSION_ACADEMIA_ID]%>">Novo</a>
            </li>
            
            <li class="itemSelected">
                <asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />
            </li>
            <li class="itemSelected">
                <asp:LinkButton Text="Excluir" Id="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>          
        </ul>
    </div>
    <div id="dados">
    <asp:GridView ID="grdPlanoExercicio" runat="server" AutoGenerateColumns="false" AllowPaging="true">
        <AlternatingRowStyle CssClass="alterningRow" />
        <SelectedRowStyle CssClass="selectedRow" />
        <Columns>
            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px">
                <ItemTemplate>
                    <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Modalidade.Descricao" HeaderText="Modalidade" />
            <asp:BoundField DataField="Exercicio.Descricao" HeaderText="Exercício" />
            <asp:BoundField DataField="Maquina.Descricao" HeaderText="Máquina" />
            <asp:BoundField DataField="Serie" HeaderText="Série" />
            <asp:BoundField DataField="Quantidade" HeaderText="Quantidade" />
            <asp:BoundField DataField="Tempo" HeaderText="Tempo" />
        </Columns>
    </asp:GridView>
</asp:Content>
